﻿using Comm100.Framework.Domain.Services;
using Bot.Domain.Bo;
using Bot.Domain.Entities;
using System;
using System.Collections.Generic;
using System.Text;

namespace Bot.Domain.Interfaces
{
    public interface IBackgroundJobDomainService : IDomainService
    {
        BackgroundJob Create(BackgroundJob backgroundJob);

        BackgroundJob Get(Guid id);

        BackgroundJob Update(BackgroundJobUpdateBo id);

        IEnumerable<BackgroundJob> List();

        void Delete(Guid id);
        /// <summary>
        /// 获取任务状态
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Operation GetOperation(Guid id);
        bool ExistsJob(Guid id);
    }
}
